<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Admin URL
 *
 * Returns the "admin_url" item from your config file
 *
 * @access	public
 * @return	string
 */
if ( ! function_exists('admin_url'))
{
	function admin_url()
	{
		$CI =& get_instance();
		return $CI->config->slash_item('base_url') . ADMIN_PATH;
	}
}
/**
 * File Browser URL
 *
 * Returns the "file_browser_url" item from your config file
 *
 * @access	public
 * @return	string
 */
if ( ! function_exists('file_browser_url'))
{
	function file_browser_url()
	{
		$CI =& get_instance();
		return $CI->config->slash_item('base_url') . "kfm147";
	}
}
/**
 * Admin template URL
 *
 * Returns the "admin_url" item from your config file
 *
 * @access	public
 * @return	string
 */
if ( ! function_exists('admin_template_url'))
{
	function admin_template_url()
	{
		$CI =& get_instance();
		return $CI->config->slash_item('base_url') . "templates/admin/";
	}
}
/**
 * Default template URL
 *
 * Returns the "admin_url" item from your config file
 *
 * @access	public
 * @return	string
 */
if ( ! function_exists('default_template_url'))
{
	function default_template_url()
	{
		$CI =& get_instance();
		return $CI->config->slash_item('base_url') . "templates/default/";
	}
}
/**
 * Common template URL
 *
 * Returns the "admin_url" item from your config file
 *
 * @access	public
 * @return	string
 */
if ( ! function_exists('common_template_url'))
{
	function common_template_url()
	{
		$CI =& get_instance();
		return $CI->config->slash_item('base_url') . "templates/common/";
	}
}

/**
 * SEO Site URL
 *
 * Create a local URL based on your basepath. Segments can be passed via the
 * first parameter either as a string or an array.
 *
 * @access	public
 * @param	string
 * @return	string
 */
if ( ! function_exists('seo_product_url'))
{
	function seo_product_url($pro_id, $title_seo = '-')
	{
		if ($title_seo == '' || $title_seo == null) {
			$title_seo = '-';
		}
		$seo_uri = $title_seo . '/pro_' . $pro_id . SUFFIX;
		$CI =& get_instance();
		return $CI->config->site_url($seo_uri);
	}
}